]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Reapply border radius on background changes
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Jun 2023 00:24:47 +0000 (02:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 21 Jun 2023 08:49:36 +0000 (08:49 +0000)
The rounded corner effect is applied to the background actor, so
we have to reapply the correct values when the background changes
for the corners to persist.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4125

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2801>

js/ui/workspace.js

index 0069cdd004c675c1729d86637dff5ab6858bbf2a..bf631a5f068e2b26b94b429bd85fa46feac69eda 100644 (file)
@@ -981,6 +981,11 @@ class WorkspaceBackground extends Shell.WorkspaceBackground {
             useContentSize: false,
         });
 
+        this._bgManager.connect('changed', () => {
+            this._updateRoundedClipBounds();
+            this._updateBorderRadius();
+        });
+
         global.display.connectObject('workareas-changed', () => {
             this._workarea = Main.layoutManager.getWorkAreaForMonitor(monitorIndex);
             this._updateRoundedClipBounds();